package com.snailhd.entity;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author hd
 * @description
 * @date 2019-11-24 17:37
 */

@Data
@NoArgsConstructor
public class StockRealTimeBet implements Serializable {

    private Integer level;
    /**交易量*/
    private BigDecimal volume;
    /**交易价格*/
    private BigDecimal trade;
    /**交易类型*/
    private Integer type;

    public StockRealTimeBet(Integer level, BigDecimal volume, BigDecimal trade) {
        this.level = level;
        this.volume = volume;
        this.trade = trade;
    }

    public interface Type{
        Integer BUY = 1;
        Integer SELL = 2;
    }

    public interface Level{
        Integer ONE = 1;
        Integer TWO = 2;
        Integer THREE = 3;
        Integer FOUR = 4;
        Integer FIVE = 5;
    }

}
